home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / db / esm-3.1 / esm-3 / usr / local / sm / src / client / include / scan.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-05  |  2.7 KB  |  99 lines

  1. #ifndef _SCAN_H_
  2. #define _SCAN_H_
  3. /*
  4.  *   $RCSfile: scan.h,v $  
  5.  *   $Revision: 1.1.1.1 $  
  6.  *   $Date: 1996/05/04 21:55:20 $      
  7.  */ 
  8. /**********************************************************************
  9. * EXODUS Database Toolkit Software
  10. * Copyright (c) 1991 Computer Sciences Department, University of
  11. *                    Wisconsin -- Madison
  12. * All Rights Reserved.
  13. *
  14. * Permission to use, copy, modify and distribute this software and its
  15. * documentation is hereby granted, provided that both the copyright
  16. * notice and this permission notice appear in all copies of the
  17. * software, derivative works or modified versions, and any portions
  18. * thereof, and that both notices appear in supporting documentation.
  19. *
  20. * THE COMPUTER SCIENCES DEPARTMENT OF THE UNIVERSITY OF WISCONSIN --
  21. * MADISON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.  
  22. * THE DEPARTMENT DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  23. * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  24. *
  25. * The EXODUS Project Group requests users of this software to return 
  26. * any improvements or extensions that they make to:
  27. *
  28. *   EXODUS Project Group 
  29. *     c/o David J. DeWitt and Michael J. Carey
  30. *   Computer Sciences Department
  31. *   University of Wisconsin -- Madison
  32. *   Madison, WI 53706
  33. *
  34. *     or exodus@cs.wisc.edu
  35. *
  36. * In addition, the EXODUS Project Group requests that users grant the 
  37. * Computer Sciences Department rights to redistribute these changes.
  38. **********************************************************************/
  39.  
  40. /* BEGIN visible to user */
  41.  
  42. typedef struct struct_scan_desc SCANDESC;
  43.  
  44. /* END visible to user */
  45.  
  46. struct struct_scan_desc {
  47.  
  48.     BUFGROUP        *bufGroup;
  49.     FID                fid;
  50.     SLOTTEDPAGE        *currentPage;
  51.     GROUPLINK        *currentLink;
  52.     USERDESC        *currentUser;
  53.     SHORTPID        *pidListBegin; /* free()-able */
  54.     SHORTPID        *pidListCurrent; /* "matches" currentPid except that
  55.                                      * the currentPid might not be in the
  56.                                      * pid list.  (The list is a neighbor
  57.                                      * list.)  If not, the this points to
  58.                                      * where the current pid would be, were
  59.                                      * it present.  It is at most one beyond
  60.                                      * the beginning or end of the neighbor
  61.                                      * list.
  62.                                      */
  63.     SHORTPID        *pidListEnd;
  64.     PID                currentPid;
  65.     SHORTPID        *nextPid;
  66.     SHORTPID        nextLogicalPid;
  67.     SLOTINDEX        currentSlot;
  68.     int                currentStart;
  69.     int                currentSize;
  70.     LISTELEMENT        scanList;
  71.     SCANFLAGS        flags;
  72.     SCANTYPE        type;
  73.     BOOL            removeGroup;
  74.     MAGIC            magic;
  75. } ;
  76.  
  77.  
  78. #define SCANDESC_MAGIC        0xef5074df
  79.  
  80. /* BEGIN visible to user */
  81.  
  82. /*
  83.  *    types of allowed scans
  84.  */
  85. #define LOGICAL_SCAN    0x1
  86. #define PHYSICAL_SCAN    0x2
  87.  
  88. /* END visible to user */
  89.  
  90.  
  91. /*
  92.  *    values for typedef SCANFLAGS
  93.  */
  94. #define SCAN_BEGIN        0x1
  95. #define SCAN_END        0x2
  96. #define SCAN_LARGE        0x4
  97. #define SCAN_FORWARDED    0x8
  98. #endif /* _SCAN_H_ */
  99.